package com.sirg.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sirg.config.LogPrint;
import com.sirg.entity.ResultBean;
import com.sirg.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author SirG
 * @since 2023-07-23
 */
@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @GetMapping("get")
    @LogPrint
    public ResultBean getTest(){
        List list = logService.list(new QueryWrapper());
        return ResultBean.success(list);
    }
}

